package com.li.core.serviceBase;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.jdbc.datasource.DataSourceTransactionManager;
import org.springframework.transaction.TransactionStatus;
import org.springframework.transaction.support.DefaultTransactionDefinition;

import com.li.core.bean.BeanBase;

public class ServiceBase {
	protected static Log log = LogFactory.getLog(BeanBase.class);
//	DataSourceTransactionManager transactionManager;
//	TransactionStatus status;
//	
//	public void begin(){
//		DefaultTransactionDefinition def = new DefaultTransactionDefinition();
//		 status = transactionManager.getTransaction(def);
//	}
//	
//	public void rollback(){
//		transactionManager.rollback(status);
//	}
//	public void commit(){
//		transactionManager.commit(status);
//	}
//
//	public DataSourceTransactionManager getTransactionManager() {
//		return transactionManager;
//	}
//
//	public void setTransactionManager(
//			DataSourceTransactionManager transactionManager) {
//		this.transactionManager = transactionManager;
//	}

}
